<?php

use backend\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\models\Goods */
/* @var $form backend\widgets\ActiveForm */
?>
<div class="row">
    <div class="col-sm-12">
        <div class="ibox">
            <?= $this->render('/widgets/_ibox-title') ?>
            <div class="ibox-content">
                <?php $form = ActiveForm::begin([
                    'options' => [
                        'class' => 'form-horizontal'
                    ]
                ]); ?>
                <div class="hr-line-dashed"></div>

                <?= $form->field($model,
                    'type')->hiddenInput(['value' => Yii::$app->request->get('type')])->label(false) ?>


                <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
                <div class="hr-line-dashed"></div>

                <?= $form->field($model, 'code')->textInput(['maxlength' => true])->label("代号") ?>
                <div class="hr-line-dashed"></div>

                <?= $form->field($model, 'i_code')->textInput(['maxlength' => true])->label("权限名称") ?>
                <div class="hr-line-dashed"></div>

                <?= $form->field($model, 'description')->textInput(['maxlength' => true]) ?>
                <div class="hr-line-dashed"></div>

                <?= $form->field($model, 'color')->textInput(['maxlength' => true]) ?>
                <div class="hr-line-dashed"></div>

                <!--                --><? //= $form->field($model, 'right')->textInput() ?>
                <!--                <div class="hr-line-dashed"></div>-->


                <?= $form->field($model, 'price')->textInput() ?>
                <div class="hr-line-dashed"></div>

                <?= $form->field($model, 'availability_period')->textInput() ?>
                <div class="hr-line-dashed"></div>

                <?= $form->field($model, 'availability_num')->textInput() ?>
                <div class="hr-line-dashed"></div>


                <?= $form->defaultButtons() ?>
                <?php ActiveForm::end(); ?>
            </div>
        </div>
    </div>
</div>